package my.test.decorator;

/**
 * @Author 许玉康
 * @Date 2019/7/17 13:55
 */
public class Father {

    public static void main(String[] args) {
//        //把成绩单拿过来
//        SchoolReport sr = new FouthGradeSchoolReport();
//        //看成绩单
//        sr.report();

//        SchoolReport sr = new SugarFouthGradeSchoolReport();
//        sr.report();
//        sr.sign("老三");

        SchoolReport sr;
        sr = new FouthGradeSchoolReport();
        sr = new HighScoreDecorator(sr);
        sr = new SortDecorator(sr);
        sr.report();
        sr.sign("老三");
    }
}
